import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/task_department_list_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/task_department_list_entity.g.dart';

@JsonSerializable()
class TaskDepartmentListEntity {

	TaskDepartmentListEntity();

	factory TaskDepartmentListEntity.fromJson(Map<String, dynamic> json) => $TaskDepartmentListEntityFromJson(json);
	String? allocationId;
	String? allocationName;
	String? allocationType;
	String? checkCycle;
	String? checkCycleUnit;
	String? checkMeans;
	String? companyCode;
	String? companyId;
	String? controlMeasures;
	int? controllable;
	String? createBy;
	String? createById;
	String? createDate;
	String? deleted;
	String? departmentId;
	String? effectiveTime;
	String? endRefreshTime;
	String? hazardCode;
	String? id;
	int? inspectionStatus;
	String? instrumentId;
	String? inventoryType;
	int? isApprove;
	int? isUpload;
	String? refreshRule;
	String? riskEventId;
	String? riskEventName;
	String? riskMeasureId;
	String? riskMeasureName;
	String? riskObjectId;
	String? riskObjectName;
	String? riskUnitId;
	String? riskUnitName;
	String? season;
	String? startRefreshTime;
	int? status;
	String? taskNum;
	String? taskStatus;
	List<TaskDepartmentListTaskTimeNodeTables>? taskTimeNodeTables;
	String? troubleshootContent;
	String? updateBy;
	String? updateById;
	String? updateDate;
	String? url;
	String? userId;
	String? warehouseId;
	String? workDayType;
	String? workEndTime;
	String? workKind;
	String? workStartTime;
	String? workType;
	/// 是否展开
	bool isExpanded = false;
	Map<String, dynamic> toJson() => $TaskDepartmentListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class TaskDepartmentListTaskTimeNodeTables {

	TaskDepartmentListTaskTimeNodeTables();

	factory TaskDepartmentListTaskTimeNodeTables.fromJson(Map<String, dynamic> json) => $TaskDepartmentListTaskTimeNodeTablesFromJson(json);
	String? createBy;
	String? createById;
	String? createDate;
	String? deleted;
	String? departmentId;
	/// 任务是否被领取 1：是 2：否
	int? hasItBeenClaimed;
	String? id;
	String? recipientId;
	String? recipientName;
	String? recipientPhone;
	int? remember;
	String? startDate;
	String? taskProgrammeId;
	String? tbBaseControlMeasuresId;
	String? tbBaseMeasuresTaskId;
	String? tbBaseRiskEventsId;
	String? tbBaseRiskObjectId;
	String? tbBaseRiskUnitId;
	String? updateBy;
	String? updateById;
	String? updateDate;
	String? validityPeriodEndTime;
	String? validityPeriodStartTime;
  /// 任务名称
  String? troubleshootContent;
	/// 当前是否选中
	bool currentRecipient = false;

	Map<String, dynamic> toJson() => $TaskDepartmentListTaskTimeNodeTablesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

